package com.webside.points.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.points.mapper.IssueTypeMapper;
import com.webside.points.model.IssueTypeEntity;
import com.webside.points.service.IssueTypeService;
@Service
public class IssueTypeServiceImpl implements IssueTypeService{

	@Autowired
	IssueTypeMapper issueTypeMapper;
	
	@Override
	//@Cacheable(value="ehcache")
	public List<IssueTypeEntity> findAll() {
		return issueTypeMapper.findAll();
	}

	@Override
	public int insert(IssueTypeEntity issueTypeEntity) {
		return issueTypeMapper.insert(issueTypeEntity);
	}

	@Override
	public int delete(int id) {
		return issueTypeMapper.delete(id);
	}

	@Override
	public int update(IssueTypeEntity issueTypeEntity) {
		return issueTypeMapper.update(issueTypeEntity);
	}

	@Override
	//@Cacheable(value="ehcache")
	public IssueTypeEntity findById(int id) {
		return issueTypeMapper.findById(id);
	}

	@Override
	public int updateStatus(IssueTypeEntity issueTypeEntity) {
		return issueTypeMapper.updateStatus(issueTypeEntity);
	}

}
